<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        whuifdwheuifhweuihfweuiuiuiuiuiuiuiweuifhwuiefhweuifhiweufhuiwe
         whuifdwheuifhweuihfweuiuiuiuiuiuiuiweuifhwuiefhweuifhiweufhuiwe
          whuifdwheuifhweuihfweuiuiuiuiuiuiuiweuifhwuiefhweuifhiweufhuiwe
           whuifdwheuifhweuihfweuiuiuiuiuiuiuiweuifhwuiefhweuifhiweufhuiwe
            whuifdwheuifhweuihfweuiuiuiuiuiuiuiweuifhwuiefhweuifhiweufhuiwe
             whuifdwheuifhweuihfweuiuiuiuiuiuiuiweuifhwuiefhweuifhiweufhuiwe
    </div>
    <script>

    </script>
</body>
<style>
    #app {
        width: 200px;
        border: 1px solid red;
        overflow: hidden;
        word-wrap: break-word; /* 长单词或URL换行 */
        overflow-wrap: break-word; /* 更现代的属性 */
        white-space: normal;  /* 默认换行行为 */
    }
</style>
</html>